import Game from './core/Game.js';
import GameConfig from './config/GameConfig.js';

// 等待 DOM 加载完成
document.addEventListener('DOMContentLoaded', () => {
    const canvas = document.getElementById('gameCanvas');
    
    // 设置画布尺寸
    canvas.width = GameConfig.CANVAS_WIDTH;
    canvas.height = GameConfig.CANVAS_HEIGHT;
    
    // 初始化游戏
    const game = new Game(canvas);
    game.start();
});